package com.ruben.simplegraphql.pojo.dto;

import lombok.Data;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * GraphqlDTO
 *
 * @author VampireAchao
 * @since 2022/9/25
 */
@Data
public class GraphqlDTO {

    private String query;
    private String operationName;
    private Map<String, Object> variables;

    public GraphqlDTO init() {
        if (this.variables == null) {
            this.variables = new LinkedHashMap<>(1 << 4);
        }
        return this;
    }

}
